package com.icoolkj.mall.order01.mapper;

import com.icoolkj.mall.order01.dto.OrderResponse;
import org.apache.ibatis.annotations.*;

import java.util.List;

/**
 * @author icoolkj
 * @version 1.0
 * @description
 * @createDate 2025/01/16 14:50
 */
@Mapper
public interface OrderMapper {

    @Select("select * from `order`  where user_id = #{userId} order by order_id desc")
    List<OrderResponse> getOrderByUserId(@Param("userId") Long userId);
}
